package com.simpns.io.entity;

import com.sun.jna.Structure;
import lombok.Data;

import java.util.Arrays;
import java.util.List;

@Data
@Structure.FieldOrder({"iLogicCode", "iPhyCode", "iHandle", "iType", "acDevReturn", "acReserve"})
public class DevReturn extends Structure {
    public int iLogicCode;
    public int iPhyCode;
    public int iHandle;
    public int iType;
    public byte acDevReturn[] = new byte[128];
    public byte acReserve[] = new byte[128];
    @Override
    protected List<String> getFieldOrder() {
        return Arrays.asList("iLogicCode", "iPhyCode", "iHandle", "iType", "acDevReturn", "acReserve");
    }
}

